package com.zenith.yasoo.setup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@Entity
@Table(name="contact_mech_postal_addr")
public class PostalAddress extends ContactMech {
	private static final long serialVersionUID = 1L;
	
	public PostalAddress(){setContactMechType(new ContactMechType(ContactMechType.TYPE_POSTAL_ADDRESS));}
	
	private String toName;
	private String attnName;
	private String address1;
	private String address2;
	private String directions;
	private String city;
	private String postalCode;
	private String postalCodeExt;
	private String countryGeoId;
	private String postalCodeGeoId;
	private String geoPointId;

	
	/*------------------------------
	 * getters and annotations
	 --------------------------------*/
	/**
	 * @TODO: other getters and GEOS
	 */
	@Column(length=100)
	public String getToName() {return toName;}
	@Column(length=100)
	public String getAttnName() {return attnName;}
	public String getAddress1() {return address1;}
	public String getAddress2() {return address2;}
	public String getDirections() {return directions;}
	public String getCity() {return city;}
	@Column(length=60)
	public String getPostalCode() {return postalCode;}
	@Column(length=60)
	public String getPostalCodeExt() {return postalCodeExt;}

	/*------------------------------
	 * setters
	 --------------------------------*/
	public void setToName(String toName) {
		this.toName = toName;
	}
	public void setAttnName(String attnName) {
		this.attnName = attnName;
	}
	public void setAddress1(String address1) {
		this.address1 = address1;
	}
	public void setAddress2(String address2) {
		this.address2 = address2;
	}
	public void setDirections(String directions) {
		this.directions = directions;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}
	public void setPostalCodeExt(String postalCodeExt) {
		this.postalCodeExt = postalCodeExt;
	}
}
